import biz.generator.*
import javax.xml.parsers.DocumentBuilderFactory;

//System.setProperty('javax.xml.parsers.DocumentBuilderFactory','com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl');
//System.setProperty('javax.xml.parsers.DocumentBuilderFactory','org.apache.xerces.jaxp.DocumentBuilderFactoryImpl');

Context context = new Context();

Module module = new Module();

Model model = module.model("org");
model.id("id");
model.title("name","名称");
model.field("remark","描述");
model.dateField("createDate","创建日期").defaultValue(ValueType.NOW);

Generator generator = new Generator();
generator.addModule(module);
generator.generate();
